package com.im.netty.handler.client;

import com.im.netty.message.LogoutResponsePacket;
import com.im.netty.session.SessionUtil;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * 
 * @author yutao
 */
public class LogoutResponseHandler extends SimpleChannelInboundHandler<LogoutResponsePacket> {

	/**
	 * 
	 * @see io.netty.channel.SimpleChannelInboundHandler#channelRead0(io.netty.channel.ChannelHandlerContext, java.lang.Object)
	 */
	@Override
	protected void channelRead0(ChannelHandlerContext ctx, LogoutResponsePacket msg) throws Exception {
		SessionUtil.unBindSession(ctx.channel());
	}

}
